package com.ucode.wap.cgms.service;

import com.ucode.model.cgms.form.CgmsGiftRewardOrderForm;

import java.time.LocalDateTime;

/**
 * 打赏订单API service接口
 * @Author: liliang
 * @Date: 2025/5/12 21:43
 * @Version: 1.0
 */
public interface ApiCgmsGiftRewardOrderService {

    /**
     * 提交订单
     * @return 支付订单ID
     */
    public Long submitOrder(CgmsGiftRewardOrderForm form);

    /**
     * 支付成功回调
     * @param orderId
     * @param payOrderId
     * @param payType
     * @param payTime
     * @param payAmount
     */
    public void paySuccess(Long orderId, Long payOrderId, String payType, LocalDateTime payTime, Integer payAmount);

    /**
     * 订单删除
     * @param orderId 订单id
     * @return Boolean
     */
    public void delete(Long orderId);



}
